gdk/gdk.def Add missing entries.
authorTor Lillqvist <tml@iki.fi>
Sat, 12 Aug 2000 19:51:05 +0000 (19:51 +0000)
committerTor Lillqvist <tml@src.gnome.org>
Sat, 12 Aug 2000 19:51:05 +0000 (19:51 +0000)
2000-08-12  Tor Lillqvist  <tml@iki.fi>

* gdk/gdk.def
* gtk/gtk.def: Add missing entries.

* gdk/win32/gdkfont-win32.c (gdk_font_load_internal): Use
OUT_TT_ONLY_PRECIS, try to get a TrueType font.

* gdk/win32/gdkinput-win32.c (gdk_device_get_state): New
function. Dummy implementation at this point.

* gtk/makefile.mingw.in: Fix typo. Add testtext and testtextbuffer
rules. Undefine GTK_COMPILATION when compiling the test programs.

* gtk/gtkdebug.h: Mark gtk_debug_flags for export/import.

* gdk_pixbuf.def: Add missing entry point.

15 files changed:
ChangeLog
ChangeLog.pre-2-0
ChangeLog.pre-2-10
ChangeLog.pre-2-2
ChangeLog.pre-2-4
ChangeLog.pre-2-6
ChangeLog.pre-2-8
gdk-pixbuf/ChangeLog
gdk-pixbuf/gdk_pixbuf.def
gdk/gdk.def
gdk/win32/gdkfont-win32.c
gdk/win32/gdkinput-win32.c
gtk/gtk.def
gtk/gtkdebug.h
gtk/makefile.mingw.in

index f7bf012b33a2cf07743203574ccb153756671da8..6d9738efd371031abdaa1723f998cc907ada7a36 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,19 @@
+2000-08-12  Tor Lillqvist  <tml@iki.fi>
+
+       * gdk/gdk.def
+       * gtk/gtk.def: Add missing entries.
+
+       * gdk/win32/gdkfont-win32.c (gdk_font_load_internal): Use
+       OUT_TT_ONLY_PRECIS, try to get a TrueType font.
+
+       * gdk/win32/gdkinput-win32.c (gdk_device_get_state): New
+       function. Dummy implementation at this point.
+
+       * gtk/makefile.mingw.in: Fix typo. Add testtext and testtextbuffer
+       rules. Undefine GTK_COMPILATION when compiling the test programs.
+       
+       * gtk/gtkdebug.h: Mark gtk_debug_flags for export/import.
+
 2000-08-11  Tor Lillqvist  <tml@iki.fi>
 
        * gtk/gtkfilesel.c: Add more calls to g_filename_{to,from}_utf8()
index f7bf012b33a2cf07743203574ccb153756671da8..6d9738efd371031abdaa1723f998cc907ada7a36 100644 (file)
@@ -1,3 +1,19 @@
+2000-08-12  Tor Lillqvist  <tml@iki.fi>
+
+       * gdk/gdk.def
+       * gtk/gtk.def: Add missing entries.
+
+       * gdk/win32/gdkfont-win32.c (gdk_font_load_internal): Use
+       OUT_TT_ONLY_PRECIS, try to get a TrueType font.
+
+       * gdk/win32/gdkinput-win32.c (gdk_device_get_state): New
+       function. Dummy implementation at this point.
+
+       * gtk/makefile.mingw.in: Fix typo. Add testtext and testtextbuffer
+       rules. Undefine GTK_COMPILATION when compiling the test programs.
+       
+       * gtk/gtkdebug.h: Mark gtk_debug_flags for export/import.
+
 2000-08-11  Tor Lillqvist  <tml@iki.fi>
 
        * gtk/gtkfilesel.c: Add more calls to g_filename_{to,from}_utf8()
index f7bf012b33a2cf07743203574ccb153756671da8..6d9738efd371031abdaa1723f998cc907ada7a36 100644 (file)
@@ -1,3 +1,19 @@
+2000-08-12  Tor Lillqvist  <tml@iki.fi>
+
+       * gdk/gdk.def
+       * gtk/gtk.def: Add missing entries.
+
+       * gdk/win32/gdkfont-win32.c (gdk_font_load_internal): Use
+       OUT_TT_ONLY_PRECIS, try to get a TrueType font.
+
+       * gdk/win32/gdkinput-win32.c (gdk_device_get_state): New
+       function. Dummy implementation at this point.
+
+       * gtk/makefile.mingw.in: Fix typo. Add testtext and testtextbuffer
+       rules. Undefine GTK_COMPILATION when compiling the test programs.
+       
+       * gtk/gtkdebug.h: Mark gtk_debug_flags for export/import.
+
 2000-08-11  Tor Lillqvist  <tml@iki.fi>
 
        * gtk/gtkfilesel.c: Add more calls to g_filename_{to,from}_utf8()
index f7bf012b33a2cf07743203574ccb153756671da8..6d9738efd371031abdaa1723f998cc907ada7a36 100644 (file)
@@ -1,3 +1,19 @@
+2000-08-12  Tor Lillqvist  <tml@iki.fi>
+
+       * gdk/gdk.def
+       * gtk/gtk.def: Add missing entries.
+
+       * gdk/win32/gdkfont-win32.c (gdk_font_load_internal): Use
+       OUT_TT_ONLY_PRECIS, try to get a TrueType font.
+
+       * gdk/win32/gdkinput-win32.c (gdk_device_get_state): New
+       function. Dummy implementation at this point.
+
+       * gtk/makefile.mingw.in: Fix typo. Add testtext and testtextbuffer
+       rules. Undefine GTK_COMPILATION when compiling the test programs.
+       
+       * gtk/gtkdebug.h: Mark gtk_debug_flags for export/import.
+
 2000-08-11  Tor Lillqvist  <tml@iki.fi>
 
        * gtk/gtkfilesel.c: Add more calls to g_filename_{to,from}_utf8()
index f7bf012b33a2cf07743203574ccb153756671da8..6d9738efd371031abdaa1723f998cc907ada7a36 100644 (file)
@@ -1,3 +1,19 @@
+2000-08-12  Tor Lillqvist  <tml@iki.fi>
+
+       * gdk/gdk.def
+       * gtk/gtk.def: Add missing entries.
+
+       * gdk/win32/gdkfont-win32.c (gdk_font_load_internal): Use
+       OUT_TT_ONLY_PRECIS, try to get a TrueType font.
+
+       * gdk/win32/gdkinput-win32.c (gdk_device_get_state): New
+       function. Dummy implementation at this point.
+
+       * gtk/makefile.mingw.in: Fix typo. Add testtext and testtextbuffer
+       rules. Undefine GTK_COMPILATION when compiling the test programs.
+       
+       * gtk/gtkdebug.h: Mark gtk_debug_flags for export/import.
+
 2000-08-11  Tor Lillqvist  <tml@iki.fi>
 
        * gtk/gtkfilesel.c: Add more calls to g_filename_{to,from}_utf8()
index f7bf012b33a2cf07743203574ccb153756671da8..6d9738efd371031abdaa1723f998cc907ada7a36 100644 (file)
@@ -1,3 +1,19 @@
+2000-08-12  Tor Lillqvist  <tml@iki.fi>
+
+       * gdk/gdk.def
+       * gtk/gtk.def: Add missing entries.
+
+       * gdk/win32/gdkfont-win32.c (gdk_font_load_internal): Use
+       OUT_TT_ONLY_PRECIS, try to get a TrueType font.
+
+       * gdk/win32/gdkinput-win32.c (gdk_device_get_state): New
+       function. Dummy implementation at this point.
+
+       * gtk/makefile.mingw.in: Fix typo. Add testtext and testtextbuffer
+       rules. Undefine GTK_COMPILATION when compiling the test programs.
+       
+       * gtk/gtkdebug.h: Mark gtk_debug_flags for export/import.
+
 2000-08-11  Tor Lillqvist  <tml@iki.fi>
 
        * gtk/gtkfilesel.c: Add more calls to g_filename_{to,from}_utf8()
index f7bf012b33a2cf07743203574ccb153756671da8..6d9738efd371031abdaa1723f998cc907ada7a36 100644 (file)
@@ -1,3 +1,19 @@
+2000-08-12  Tor Lillqvist  <tml@iki.fi>
+
+       * gdk/gdk.def
+       * gtk/gtk.def: Add missing entries.
+
+       * gdk/win32/gdkfont-win32.c (gdk_font_load_internal): Use
+       OUT_TT_ONLY_PRECIS, try to get a TrueType font.
+
+       * gdk/win32/gdkinput-win32.c (gdk_device_get_state): New
+       function. Dummy implementation at this point.
+
+       * gtk/makefile.mingw.in: Fix typo. Add testtext and testtextbuffer
+       rules. Undefine GTK_COMPILATION when compiling the test programs.
+       
+       * gtk/gtkdebug.h: Mark gtk_debug_flags for export/import.
+
 2000-08-11  Tor Lillqvist  <tml@iki.fi>
 
        * gtk/gtkfilesel.c: Add more calls to g_filename_{to,from}_utf8()
index 369a67c7590e73eb35e26b4e7b5d170871b04ca2..c9b49204fcaf16779d761ac465e898a88ff62bf9 100644 (file)
@@ -1,3 +1,7 @@
+2000-08-12  Tor Lillqvist  <tml@iki.fi>
+
+       * gdk_pixbuf.def: Add missing entry point.
+
 2000-08-10  Havoc Pennington  <hp@redhat.com>
 
        * Makefile.am (EXTRA_DIST): The *.def files had the wrong names
index 546e3bc9f25b3770eae47635e9ae0f99e7b4434e..620b74e7d735107e4daadb23f41ca418f127fa30 100644 (file)
@@ -24,6 +24,7 @@ EXPORTS
        gdk_pixbuf_get_height
        gdk_pixbuf_get_module
        gdk_pixbuf_get_n_channels
+       gdk_pixbuf_get_named_module
        gdk_pixbuf_get_pixels
        gdk_pixbuf_get_rowstride
        gdk_pixbuf_get_type
index 40e104cb253ca7fb6f08492837fe50aad7b0a48f..f4d020d4e973bc0d9f45bb5e410251fc198abe16 100644 (file)
@@ -47,6 +47,10 @@ EXPORTS
        gdk_cursor_new_from_pixmap
        gdk_cursor_ref
        gdk_cursor_unref
+       gdk_device_free_history
+       gdk_device_get_axis
+       gdk_device_get_history
+       gdk_device_get_state
        gdk_device_set_axis_use
        gdk_device_set_key
        gdk_device_set_mode
@@ -108,6 +112,7 @@ EXPORTS
        gdk_event_free
        gdk_event_func
        gdk_event_get
+       gdk_event_get_axis
        gdk_event_get_graphics_expose
        gdk_event_get_time
        gdk_event_handler_set
index 163796ab7a7b5200d4f70de414472c9c1347b12a..952b36ab6a2f97c4baa111589c50bd0b9bd907c2 100644 (file)
@@ -1281,7 +1281,7 @@ gdk_font_load_internal (const gchar *font_name)
       logfont.lfUnderline = FALSE;
       logfont.lfStrikeOut = FALSE;
       logfont.lfCharSet = ANSI_CHARSET;
-      logfont.lfOutPrecision = OUT_TT_PRECIS;
+      logfont.lfOutPrecision = OUT_TT_ONLY_PRECIS;
       logfont.lfClipPrecision = CLIP_DEFAULT_PRECIS;
       logfont.lfQuality = PROOF_QUALITY;
       logfont.lfPitchAndFamily = DEFAULT_PITCH;
index 94091bf7bb44ed6152ea45fb7bf518eccfb97348..c1256e4fa5035a0883c16bc079437b289e6386b7 100644 (file)
@@ -1153,6 +1153,73 @@ _gdk_device_get_history (GdkDevice         *device,
   return FALSE;
 }
 
+void 
+gdk_device_get_state (GdkDevice       *device,
+                     GdkWindow       *window,
+                     gdouble         *axes,
+                     GdkModifierType *mask)
+{
+  gint i;
+
+  g_return_if_fail (device != NULL);
+  g_return_if_fail (GDK_IS_WINDOW (window));
+
+  if (GDK_IS_CORE (device))
+    {
+      gint x_int, y_int;
+      
+      gdk_window_get_pointer (window, &x_int, &y_int, mask);
+
+      if (axes)
+       {
+         axes[0] = x_int;
+         axes[1] = y_int;
+       }
+    }
+  else
+    {
+      GdkDevicePrivate *gdkdev;
+      GdkInputWindow *input_window;
+      
+      if (mask)
+       gdk_window_get_pointer (window, NULL, NULL, mask);
+      
+      gdkdev = (GdkDevicePrivate *)device;
+      input_window = gdk_input_window_find (window);
+      g_return_if_fail (input_window != NULL);
+
+#if 0 /* FIXME */
+      state = XQueryDeviceState (gdk_display, gdkdev->xdevice);
+      input_class = state->data;
+      for (i = 0; i < state->num_classes; i++)
+       {
+         switch (input_class->class)
+           {
+           case ValuatorClass:
+             if (axes)
+               gdk_input_translate_coordinates (gdkdev, input_window,
+                                                ((XValuatorState *)input_class)->valuators,
+                                                axes, NULL, NULL);
+             break;
+             
+           case ButtonClass:
+             if (mask)
+               {
+                 *mask &= 0xFF;
+                 if (((XButtonState *)input_class)->num_buttons > 0)
+                   *mask |= ((XButtonState *)input_class)->buttons[0] << 7;
+                 /* GDK_BUTTON1_MASK = 1 << 8, and button n is stored
+                  * in bit 1<<(n%8) in byte n/8. n = 1,2,... */
+               }
+             break;
+           }
+         input_class = (XInputClass *)(((char *)input_class)+input_class->length);
+       }
+      XFreeDeviceState (state);
+#endif
+    }
+}
+
 void 
 gdk_input_init (void)
 {
index ce1ec891317b0c9ef3c79bc92f3fa0ebf9acc619..7e5c51279b6a81ce71bb2cfb3c3957f62880bb46 100755 (executable)
@@ -433,6 +433,7 @@ EXPORTS
        gtk_curve_set_range
        gtk_curve_set_vector
        gtk_data_get_type
+       gtk_debug_flags
        gtk_dialog_get_type
        gtk_dialog_new
        gtk_drag_begin
@@ -1102,19 +1103,64 @@ EXPORTS
        gtk_tearoff_menu_item_get_type
        gtk_tearoff_menu_item_new
        gtk_text_backward_delete
+       gtk_text_buffer_apply_tag
+       gtk_text_buffer_apply_tag_by_name
+       gtk_text_buffer_delete
+       gtk_text_buffer_get_char_count
+       gtk_text_buffer_get_iter_at_line
+       gtk_text_buffer_get_iter_at_line_offset
+       gtk_text_buffer_get_iter_at_mark
+       gtk_text_buffer_get_iter_at_offset
+       gtk_text_buffer_get_line_count
+       gtk_text_buffer_create_mark
+       gtk_text_buffer_create_tag
+       gtk_text_buffer_delete_mark
+       gtk_text_buffer_get_bounds
+       gtk_text_buffer_get_last_iter
+       gtk_text_buffer_get_mark
+       gtk_text_buffer_get_selection_bounds
+       gtk_text_buffer_get_slice
+       gtk_text_buffer_insert
+       gtk_text_buffer_insert_pixmap
+       gtk_text_buffer_modified
+       gtk_text_buffer_move_mark
+       gtk_text_buffer_new
+       gtk_text_buffer_set_modified
+       gtk_text_buffer_remove_tag
+       gtk_text_buffer_remove_tag_by_name
        gtk_text_forward_delete
        gtk_text_freeze
        gtk_text_get_length
        gtk_text_get_point
        gtk_text_get_type
        gtk_text_insert
+       gtk_text_iter_backward_chars
+       gtk_text_iter_forward_chars
+       gtk_text_iter_forward_line
+       gtk_text_iter_forward_search
+       gtk_text_iter_equal
+       gtk_text_iter_get_offset
+       gtk_text_iter_get_text
+       gtk_text_iter_is_last
+       gtk_text_iter_next_char
+       gtk_text_iter_prev_char
+       gtk_text_iter_spew
        gtk_text_new
        gtk_text_set_adjustments
        gtk_text_set_editable
        gtk_text_set_line_wrap
        gtk_text_set_point
        gtk_text_set_word_wrap
+       gtk_text_tag_get_type
        gtk_text_thaw
+       gtk_text_unknown_char
+       gtk_text_unknown_char_utf8
+       gtk_text_view_get_type
+       gtk_text_view_get_wrap_mode
+       gtk_text_view_new_with_buffer
+       gtk_text_view_set_cursor_visible
+       gtk_text_view_set_editable
+       gtk_text_view_set_wrap_mode
        gtk_timeout_add
        gtk_timeout_add_full
        gtk_timeout_remove
@@ -1242,6 +1288,7 @@ EXPORTS
        gtk_widget_get_default_direction
        gtk_widget_get_default_style
        gtk_widget_get_default_visual
+       gtk_widget_get_direction
        gtk_widget_get_events
        gtk_widget_get_extension_events
        gtk_widget_get_name
index baa11e65f1f11a767f57f432f118a33899441a22..9b7933f66a630db1d7cd0223e44b5750419101fa 100644 (file)
@@ -52,7 +52,17 @@ typedef enum {
       
 #endif /* G_ENABLE_DEBUG */
 
-extern guint gtk_debug_flags;
+#ifdef G_OS_WIN32
+#  ifdef GTK_COMPILATION
+#    define GTKVAR __declspec(dllexport)
+#  else
+#    define GTKVAR extern __declspec(dllimport)
+#  endif
+#else
+#  define GTKVAR extern
+#endif
+
+GTKVAR guint gtk_debug_flags;
 
 #ifdef __cplusplus
 }
index 7ef75d214c48831a32e1dc518a174df1f7485b9f..23d32b616bf9afdc45bd884953b0c838c63bee45 100644 (file)
@@ -47,7 +47,7 @@ all :                                         \
        testrgb.exe                             \
        testselection.exe                       \
        testtext.exe                            \
-       testtextbuffer.exe
+       testtextbuffer.exe                      \
        simple.exe
 
 gtk_OBJECTS =                                  \
@@ -376,49 +376,61 @@ testcalendar.exe : testcalendar.o
 
 # Must have separate rules for these objects that don't go in the DLL
 testcalendar.o : testcalendar.c
-       $(CC) $(CFLAGS) -c -DG_LOG_DOMAIN=\"testcalendar\" testcalendar.c
+       $(CC) $(CFLAGS) -UGTK_COMPILATION -c -DG_LOG_DOMAIN=\"testcalendar\" testcalendar.c
 
 testdnd.exe : testdnd.o
        $(CC) $(CFLAGS) -o $@ testdnd.o $(GTK_LIBS) $(GDK_LIBS) $(GLIB_LIBS) $(LDFLAGS)
 
 testdnd.o : testdnd.c
-       $(CC) $(CFLAGS) -c -DG_LOG_DOMAIN=\"testdnd\" testdnd.c
+       $(CC) $(CFLAGS) -UGTK_COMPILATION -c -DG_LOG_DOMAIN=\"testdnd\" testdnd.c
 
 testgtk.exe : testgtk.o
        $(CC) $(CFLAGS) -o $@  testgtk.o $(GTK_LIBS) $(GDK_LIBS) $(PANGO_LIBS) $(GLIB_LIBS) $(LDFLAGS)
 
 testgtk.o : testgtk.c
-       $(CC) $(CFLAGS) -c -DG_LOG_DOMAIN=\"testgtk\" testgtk.c
+       $(CC) $(CFLAGS) -UGTK_COMPILATION -c -DG_LOG_DOMAIN=\"testgtk\" testgtk.c
 
 testinput.exe : testinput.o
        $(CC) $(CFLAGS) -o $@  testinput.o $(GTK_LIBS) $(GDK_LIBS) $(GLIB_LIBS) $(LDFLAGS)
 
 testinput.o : testinput.c
-       $(CC) $(CFLAGS) -c -DG_LOG_DOMAIN=\"testinput\" testinput.c
+       $(CC) $(CFLAGS) -UGTK_COMPILATION -c -DG_LOG_DOMAIN=\"testinput\" testinput.c
 
 testrgb.exe : testrgb.o
        $(CC) $(CFLAGS) -o $@  testrgb.o $(GTK_LIBS) $(GDK_LIBS) $(GLIB_LIBS) $(LDFLAGS)
 
 testrgb.o : testrgb.c
-       $(CC) $(CFLAGS) -c -DG_LOG_DOMAIN=\"testrgb\" testrgb.c
+       $(CC) $(CFLAGS) -UGTK_COMPILATION -c -DG_LOG_DOMAIN=\"testrgb\" testrgb.c
 
 testselection.exe : testselection.o
        $(CC) $(CFLAGS) -o $@  testselection.o $(GTK_LIBS) $(GDK_LIBS) $(GLIB_LIBS) $(LDFLAGS)
 
 testselection.o : testselection.c
-       $(CC) $(CFLAGS) -c -DG_LOG_DOMAIN=\"testselection\" testselection.c
+       $(CC) $(CFLAGS) -UGTK_COMPILATION -c -DG_LOG_DOMAIN=\"testselection\" testselection.c
+
+testtext.exe : testtext.o
+       $(CC) $(CFLAGS) -o $@  testtext.o $(GTK_LIBS) $(GDK_LIBS) $(GLIB_LIBS) $(LDFLAGS)
+
+testtext.o : testtext.c
+       $(CC) $(CFLAGS) -UGTK_COMPILATION -c -DG_LOG_DOMAIN=\"testtext\" testtext.c
+
+testtextbuffer.exe : testtextbuffer.o
+       $(CC) $(CFLAGS) -o $@  testtextbuffer.o $(GTK_LIBS) $(GDK_LIBS) $(GLIB_LIBS) $(LDFLAGS)
+
+testtextbuffer.o : testtextbuffer.c
+       $(CC) $(CFLAGS) -UGTK_COMPILATION -c -DG_LOG_DOMAIN=\"testtextbuffer\" testtextbuffer.c
 
 testthreads.exe : testthreads.o
        $(CC) $(CFLAGS) -o $@  testthreads.o $(GTK_LIBS) $(GDK_LIBS) $(GLIB_LIBS) $(PTHREAD_LIB) $(LDFLAGS)
 
 testthreads.o : testthreads.c
-       $(CC) $(CFLAGS) -I$(PTHREAD_INC) -c -DG_LOG_DOMAIN=\"testthreads\" -DUSE_PTHREADS=1 testthreads.c
+       $(CC) $(CFLAGS) -I$(PTHREAD_INC) -UGTK_COMPILATION -c -DG_LOG_DOMAIN=\"testthreads\" -DUSE_PTHREADS=1 testthreads.c
 
 simple.exe : simple.o
        $(CC) $(CFLAGS) -o $@  simple.o $(GTK_LIBS) $(GDK_LIBS) $(GLIB_LIBS) $(LDFLAGS)
 
 simple.o : simple.c
-       $(CC) $(CFLAGS) -c -DG_LOG_DOMAIN=\"simple\" simple.c
+       $(CC) $(CFLAGS) -UGTK_COMPILATION -c -DG_LOG_DOMAIN=\"simple\" simple.c
 
 # The rmgen target removes just the generated source files
 rmgen: